$(function(){
    url = window.location.search
    if (url != '') {
        url = url.substr(1, url.length)
        params = url.split("&")

        params.forEach(function(item) {
            pair = item.split("=")
            key = pair[0]
            value = pair[1]

            // 当hide-nav参数为true时表示隐藏导航栏
            if (key == 'hide-nav' && value == 'true') {
                $(".nav-bar").remove()
            }
        })
    }
})

